<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<probiz:pageHeading entityName="${selfCollectionCentre.selfCollectionCentreName}" entityHeadingKey="selfCollectionCentreDetail.heading" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoSave(this);" />
	<probiz:iconBtn btnType="saveAndNext" onclick="return fnDoSaveAndNext(this);" />
	<c:if test="${selfCollectionCentre.selfCollectionCentreId!=null}">
		<probiz:iconBtn btnType="delete" onclick="return fnDoDelete(this);" />
	</c:if>
	<probiz:iconBtn btnType="back" onclick="return fnDoCancelForm(this);" />
</content>
<probiz:showBindErrors bindPath="selfCollectionCentre.*" />
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="selfCollectionCentreDetail.heading"/></span></li>
	</ul>
</div>
<div class="modify">
	<form:form method="post" cssClass="mainForm" id="selfCollectionCentre" commandName="selfCollectionCentre"
			action="${ctxPath}/system/selfCollectionCentre.html" onsubmit="return validateSelfCollectionCentre(this);">
		<input type="hidden" name="selfCollectionCentreId" value="${selfCollectionCentre.selfCollectionCentreId}"/> 
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="selfCollectionCentre.group.basic"/></h4></th>
		</tr>
		<probiz:input property="selfCollectionCentreName" />
		<tr>
			<th class="label_width_1">
				<StoreAdmin:label key="selfCollectionCentre.address" />
			</th>
			<td>
				<system:regionLinkageSelector selectorId="regionLinkageSelector" regionId="${selfCollectionCentre.regionId}" needValidate="true"/>
			</td>
		</tr>
		<tr>
			<th></th>
			<td>
				<spring:bind path="selfCollectionCentre.address">
					<input id="${status.expression}" name="${status.expression}" type="text" class="inputtxt" value="${status.value}" style="width:350px" />
					<form:errors path="address" cssClass="fieldError" />
				</spring:bind>
				
			</td>
		</tr>
		<tr>
			<th class="label_width_1">
				<StoreAdmin:label key="selfCollectionCentre.description" />
			</th>
			<td>
				<form:textarea path="description"  rows="5" cols="100"/>
				<form:errors path="description" cssClass="fieldError" />
			</td>
		</tr>
 		<!-- <probiz:input property="sortOrder" /> -->
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="selfCollectionCentre.group.statusInfo"/></h4></th>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="selfCollectionCentre.status" />
			</th>
			<td colspan="3">
				<spring:bind path="selfCollectionCentre.status">
					<select class="selecttxt" name="${status.expression}" id="${status.expression}" style="width: 200px">
						<option value="1"><fmt:message key="status.active" /></option>
						<option value="2"><fmt:message key="status.inactive" /></option>
					</select>
					<script>
						document.forms["selfCollectionCentre"].elements["status"].value="${status.value}"  ; 
					</script>
					<span class="fieldError">${status.errorMessage}</span>
				</spring:bind>
			</td>
		</tr>
   	</table>
</form:form>
</div>

<v:javascript formName="selfCollectionCentre" staticJavascript="false" />
<script type="text/javascript">
    document.forms["selfCollectionCentre"].elements["selfCollectionCentreName"].focus();
</script>
<c:set var="probizJs_region" value="true" scope="request"/>
<script type="text/javascript">
var regionSelector;
$j(document).ready(function () {
});

</script>

